// index.js
Page({
  data:{
    swiper:[],
    list:[]
  },
  onLoad:function(){
    wx.request({
      url: 'https://www.escook.cn/slides',
      method:'get',
      dataType:'json',
      success:(res)=>{console.log(res.data)
        this.setData({ swiper:res.data});
      }
    });
   wx.request({
     url: 'https://www.escook.cn/categories',
     method:'get',
     dataType:'json',
     success:(res)=>{
       console.log(res.data)
       this.setData({list:res.data});
     }
   })
  }
})
